package com.training.java.core.unittesting;


import junit.framework.TestCase;

import org.junit.Test;

public class CalculatorTest {
	
	@Test
	public void testAdd()
	{
		Calculator cal=new Calculator();
		int result=cal.add(10, 20);
		TestCase.assertEquals(30, result);
	}
	
	@Test
	public void testSub()
	{
		Calculator cal=new Calculator();
		int result =cal.sub(20, 10);
		TestCase.assertEquals(10,result);
	}
	
	@Test
	public void testMul()
	{
		Calculator cal =new Calculator();
		int result=cal.mul(10,20);
		TestCase.assertEquals(200, result);
		
	}
}
